package com.example.web_task.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学院
 * </p>
 *
 * @author suheng
 * @since 2024-02-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("college")
@ApiModel(value="College对象", description="学院")
public class College implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "学院名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "学院简介")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "开设专业")
    @TableField("major")
    private String major;

    @ApiModelProperty(value = "占地面积")
    @TableField("area")
    private Integer area;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDate createTime;

    @ApiModelProperty(value = "学院人数")
    @TableField("number")
    private Integer number;


}
